﻿
using ManageSystemServer.Entity;

using Microsoft.EntityFrameworkCore;

namespace ManageSystemServer.DAO
{
    public class ServerContext : DbContext
    {
        public ServerContext(DbContextOptions<ServerContext> options)
            : base(options)
        {
            Database.EnsureCreated();
        }

        public DbSet<Student> Students => Set<Student>();

        public DbSet<Admin> Admins => Set<Admin>();
    }
}